﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="TipoEventoFrm.aspx.cs" Inherits="ddcCajamarca.Web.AgendaCultural.TipoEventoFrm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    
    <div class="col-lg-12">
        <asp:FormView ID="fvTipoEvento" runat="server" CssClass="table table-responsive"
            DefaultMode="Edit"
            SelectMethod="GetTipoEvento"
            UpdateMethod="UpdateTipoEvento"
            InsertMethod="AddTipoEvento"
            ItemType="ddcCajamarca.BusinessEntities.AgendaCultural.TipoEvento">
            <InsertItemTemplate>
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <h3><b>Nuevo Tipo de Evento</b></h3>
                    </div>
                    <div class="panel-body">
                        <div class="row">
                            <div class="col-md-4">
                                <label>Nombre</label>
                                <asp:TextBox ID="txtNombre" Text="<%# BindItem.Nombre %>" CssClass="form-control input-sm" runat="server" />
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNombre" ErrorMessage="* Campo necesario" ForeColor="Red"></asp:RequiredFieldValidator>
                            </div>
                            <div class="col-md-6">
                                <label>Descripción</label>
                                <asp:TextBox ID="tbxDireccion" Text="<%# BindItem.Descripcion %>" CssClass="form-control input-sm" runat="server" />
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <a href="GestionarTiposEventoFrm.aspx" class="btn btn-default btn-sm">Cancelar</a>
                        <asp:Button ID="btnGuardar" CommandName="insert" class="btn btn-primary " Text="Guardar" runat="server" />
                    </div>
                </div>
            </InsertItemTemplate>
            <EditItemTemplate>
                <div class="panel panel-warning">
                    <div class="panel-heading">
                        <h3><b>Editar Tipo de Evento</b></h3>
                    </div>
                    <div class="panel-body">
                        <div class="row">
                            <div>
                                <asp:TextBox ID="txtId" Text="<%# BindItem.Id %>" CssClass="form-control input-sm" Visible="False" runat="server" />
                            </div>
                            <div class="col-md-4">
                                <label>Nombre</label>
                                <asp:TextBox ID="txtNombre" Text="<%# BindItem.Nombre %>" CssClass="form-control input-sm" runat="server" />
                            </div>
                            <div class="col-md-6">
                                <label>Descripción</label>
                                <asp:TextBox ID="tbxDireccion" Text="<%# BindItem.Descripcion%>" CssClass="form-control input-sm" runat="server" />
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <a href="GestionarTiposEventoFrm.aspx" class="btn btn-sm btn-default">Cancelar</a>
                        <asp:Button ID="btnGuardar" CommandName="update" CssClass="btn btn-primary" Text="Guardar" runat="server" />
                    </div>
                </div>
            </EditItemTemplate>
        </asp:FormView>
    </div>

</asp:Content>
